package com.qiangqiang.task.server.dto;

import lombok.Data;

/**
 * @program: task
 * @description:
 * @author: Sky.lin
 * @create: 2019-03-04 14:26
 **/
@Data
public class MessageDTO<T> {
    private String name;
    private String time;
    private String commonId; // 避免前端接收精度缺失
    private int type;
    T message;

    public MessageDTO() {
    }

    public MessageDTO(String name, String time, T message) {
        this.name = name;
        this.message = message;
        this.time = time;
    }
}
